/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package models;

import play.db.jpa.*;
import javax.persistence.*;

/**
 *
 * @author Zlobniy
 */
@Entity
@Table(name="activitiessubtype")
public class ActivitiesSubtype extends Model{
    
    @ManyToOne(cascade=CascadeType.PERSIST)
    private Activities activities;
    
    private String name;
    private String info;
    
    public ActivitiesSubtype(Activities activities, String name, String info){
        this.activities = activities;
        this.name = name;
        this.info = info;
    }

    public Activities getActivities() {
        return activities;
    }

    public void setActivities(Activities activities) {
        this.activities = activities;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    
}
